package com.core.website.service;

import com.core.website.entity.Column;
import com.core.website.entity.IpEntity;

import java.util.List;
import java.util.Set;

public interface IpService {
    void addIp(IpEntity ipEntity);
    void update(IpEntity ipEntity);
    List<IpEntity> queryPage(String columnId,String ip);
    void delete(List<String> ipList);
    Set<String> queryFilterColumn(String ipAddress);

    void statisticalIpSetting(List<String> ipList);
    List<String> statisticalIpSearch();
    int statisticalIpTotal();
    void addStatisticalIpNum(String ipAddress);
    void first(String ip);
    int checkFirst(String ip);
    String getFirstSwich();
    int updateFirstSwich(String swich);

    /**
     * 查询ip是否具有访问该栏目的权限
     * @param ipAddress
     * @param columnId
     * @return
     */
    boolean queryIsFilterColumn(String ipAddress, String columnId);
}
